<?php
namespace app\admin\model\system;
use app\common\traits\ModelCurd;
use think\Model;
class Administrator extends Model
{
    protected $table='cp_admin';
    protected $autoWriteTimestamp = true;
    protected $auto = ['is_admin'];
    use ModelCurd;

    public function setIsAdminAttr($value)
    {
        if($value) return $value;
        return 1;
    }
}